import TabsView from '@/layouts/tabs/TabsView'
import BlankView from '@/layouts/BlankView'
// import Home from '@/views/Home'

// 路由配置
const options = {
    base: process.env.BASE_URL,
    routes: [
        {
            path: '/login',
            name: '首页',
            component: TabsView,
        },
        {
            path: '/',
            name: '首页',
            component: TabsView,
            children: [
                {
                    path: '/',
                    name: '父级路由1',
                    component: BlankView,
                    meta: {
                        icon: 'dashboard',
                    },
                    children: [
                        {
                            path: 'demo1',
                            name: '演示页面1',
                            meta: {
                                unclose: true,
                                icon: 'el-icon-menu',
                                page: {
                                    closable: false,
                                    title: '演示页面1'
                                }
                            },
                            component: () => import('@/views/home'),
                        },
                        {
                            path: 'demo3',
                            name: '演示页面3',
                            meta: {
                                icon: 'el-icon-menu',
                                page: {
                                    title: '演示页面3'
                                }
                            },
                            component: () => import('@/views/home'),
                        },
                    ]
                },
                {
                    path: '/p2',
                    name: '父级路由2',
                    component: BlankView,
                    meta: {
                        icon: 'dashboard',
                    },
                    children: [
                        {
                            path: 'demo2',
                            name: '演示页面2',
                            meta: {
                                icon: 'el-icon-menu',
                                page: {
                                    title: '演示页面2'
                                }
                            },
                            component: () => import('@/views/home/indaex'),
                        }
                    ]
                },
            ]
        }
    ]
}

export default options
